package com.atguigu.gmall.payment.service;


import com.alipay.api.AlipayApiException;

public interface AlipayService {

    String createaliPay(Long orderId) throws AlipayApiException;

    //根据订单id 申请退款
    boolean refund(Long orderId);

    /**
     * 根据订单id取消支付宝 交易
     * @param orderId
     * @return
     */
    Boolean closePay(Long orderId);

    /**
     * 根据订单id查询支付宝 交易
     * @param orderId
     * @return
     */
    Boolean checkPay(Long orderId);
}
